package com.pxmeta.dynamic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxmeta.dynamic.entity.TopicUserFollow;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wcl
 * @since 2022-07-21
 */
public interface ITopicUserFollowService extends IService<TopicUserFollow> {

    /**
     * 关注话题
     * @param userId
     * @param topicId
     */
    void follow(Long userId, Long topicId,Long circleId);


    /**
     * 取消关注
     * @param userId
     * @param topicId
     */
    void unfollow(Long userId, Long topicId);

    /**
     * 是否关注
     * @param userId
     * @param topicId
     * @return
     */
    boolean isFollow(Long userId, Long topicId);


    /**
     * 查询关注的话题id列表
     * @param userId
     * @param topicIds
     * @return
     */
    List<Long> getFollowTopicIds(Long userId, List<Long> topicIds);

}
